package com.zjyd.douyangcommoncore.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.zjyd.douyangcommoncore.annotation.DouYangAutoTable;
import lombok.Data;
import org.dromara.autotable.annotation.ColumnComment;
import org.dromara.autotable.annotation.ColumnType;
import org.dromara.autotable.annotation.mysql.MysqlTypeConstant;
import org.dromara.mpe.autotable.annotation.ColumnId;
import org.dromara.mpe.autotable.annotation.Table;

@Data
@Table(value = "dy_video", comment = "视频表")
@DouYangAutoTable(tableName = "dy_video", generateService = true)
public class VideoPo {

    @ColumnComment("id")
    @ColumnId(mode = IdType.AUTO, comment = "id主键", type = MysqlTypeConstant.BIGINT, length = 32)
    private Integer id;

    //标题
    @ColumnComment("标题")
    @ColumnType(length = 100)
    private String title;

    //作者
    @ColumnComment("作者Id")
    @ColumnType(length = 100)
    private String userId;

    //ip属地
    @ColumnComment("ip属地")
    @ColumnType(length = 100)
    private String ipAddress;

    //视频播放地址
    @ColumnComment("视频播放地址")
    @ColumnType(length = 500)
    private String videoUrl;

    //-----------视频流量相关----------
    @ColumnComment("播放量")
    @ColumnType(length = 11)
    private Integer playNum;

    @ColumnComment("点赞数")
    @ColumnType(length = 10)
    private Integer likeNum;

    @ColumnComment("收藏数")
    @ColumnType(length = 10)
    private Integer collectNum;

    @ColumnComment("评论数")
    @ColumnType(length = 10)
    private Integer commentNum;

    @ColumnComment("分享数")
    @ColumnType(length = 10)
    private Integer shareNum;




}
